﻿using System.IO;
using System.IO.IsolatedStorage;

namespace Zeus.Classes.Documents
{
    public class videoDocument : Document
    {
        public float Duration { get; set; }
        public float VideoSize { get; set; }
        public string Extenstion { get; set; }
        public int PosX { get; set; }
        public int PosY { get; set; }
        public int PosZ { get; set; }
        

        public videoDocument()
        {
            DocType =  ProjectItem_Types.Video;
            FilePath = "./" + Project.ProjectName + "/Videos/" + FileName;
            Initilize();
        }
        public videoDocument(Stream st)
        {
            DocStream = st;
            DocType = ProjectItem_Types.Video;
            FilePath = "./" + Project.ProjectName + "/Videos/" + FileName;
            Initilize();
        }

        public override void Save()
        {
          
        }
        public  void Read()
        {
            IsolatedStorageFile isol = IsolatedStorageFile.GetUserStoreForApplication();
            IsolatedStorageFileStream stream = new IsolatedStorageFileStream("filename.wav", FileMode.Open, isol);

           // SoundPlayer player = new SoundPlayer(stream);
           // player.PlaySync(); //use Play() in real application
 
        }

        public override void Initilize()
        {
           
        }
    }
}
